import * as ActionTypes from './ActionTypes.js';

let nextTodoId = 0;

export const add = (text) => {
  return {
    type: ActionTypes.ADD_TODO,
    completed: false,
    id: nextTodoId ++,
    text:text
  }
};
